/*
 * Created on 2007-12-29
 *
 * TODO 
 */
package jacky.lanlan.song.extension.struts.action;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * 暴露底层 Servlet API，让Action在需要的时候可以获得底层 Servlet API访问权。
 * @author Jacky.Song
 */
public interface ActionContext {

	/**
	 * 得到ServletContext 
	 */
	public ServletContext getContext();

	/**
	 * 得到当前请求所属的Session
	 */
	public HttpSession getSession();
	
	/**
	 * 得到当前的HttpServletRequest
	 */
	public HttpServletRequest getRequest();

	/**
	 * 得到HttpServletResponse
	 */
	public HttpServletResponse getResponse();

}
